package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.system.api.factory.RemoteEmailFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "RemoteEmailService",value = ServiceNameConstants.SYSTEM_SERVICE,fallbackFactory = RemoteEmailFallbackFactory.class)
public interface RemoteEmailService {

    @GetMapping("/email/send")
    public void sendEmail();

    @PostMapping("/email/{verify}")
    public Boolean verifyCode(@PathVariable("verify") String inputCode);
}
